package fudan.secret.util;

import java.util.Map;
import java.util.HashMap;

import fudan.secret.domain.User;

public class DomainConverter {
  public String User2String(User user){
    Map<String,String> map = new HashMap<String,String>();
    
    map.put("uname", user.getUname());
    map.put("unickname", user.getUnickname());
    map.put("uid", String.valueOf(user.getUid()));
    map.put("ugender", user.getUgender());
    map.put("uschool", user.getUschool());
    map.put("uemail", user.getUemail());
    return map.toString();
  }
}
